//
//  LockView.h
//  LockViewDemo
//
//  Created by jianyong.wang on 2017/12/4.
//  Copyright © 2017年 jianyong.wang. All rights reserved.
//

#import <UIKit/UIKit.h>
//检测手势密码答案情况 对/错/不够4个数字
typedef NS_ENUM(NSUInteger, ResultPwdType) {
    ResultPwdTypeTrue,//密码正确
    ResultPwdTypeFalse,//密码错误
    ResultPwdTypeNoEnough,//密码不够4个
    ResultPwdTypeClear//密码清除
};

typedef NS_ENUM(NSUInteger, SetPwdType) {
    SetPwdTypeNoEnough,//密码不够4个
    SetPwdTypeTrue//密码够4个
};
@class LockView;
@protocol LockDelegate <NSObject>
- (void)lockView:(LockView *)lockView drawFinished:(NSMutableString *)pwd;
@end
@interface LockView : UIView
@property (nonatomic, weak) id<LockDelegate> delegate;//代理
@property (nonatomic,assign) BOOL isTest;//是否在测试
- (void)addPanGesture;//添加手势
- (void)clearLockView;//清除布局 重新开始
- (void)checkResultPwd:(ResultPwdType)type;//传入测试结果
- (void)checkSetPwd:(SetPwdType)type;//传入密码设置结果
@end
